

/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
import Timer 1.0

Rectangle {
    width: Constants.width
    height: Constants.height

    property alias setting: setting
    property alias counting: counting
    property alias stackView: stackView
    property alias dialog: dialog

    StackView {
        id: stackView
        anchors.fill: parent
        initialItem: setting
    }

    Dialog {
        id: dialog
        title: "计时完成"
        x: 120
        y: 200
        width: 1000
        height: 400
        font.pixelSize: 50
        font.family: "Times New Roman"
        contentItem: Label {
            font.pixelSize: 50
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
        }
        modal: true
        standardButtons: Dialog.Ok
    }

    Component {
        id: setting
        Setting {}
    }

    Component {
        id: counting
        Counting {}
    }
}
